package org.yunzhong.commontool.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.yunzhong.commontool.model.CommonModel;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@Api(tags = "CommonController", description = "CommonController")
@RequestMapping("/common")
public class CommonController {

    @ApiOperation("generate")
    @PostMapping(value = "/generate")
    @ResponseBody
    public String customList(@RequestBody CommonModel commonModel) {
        return commonModel.getName();
    }
}
